import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router/index'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'echarts'
import Chart from './view/Window5.vue';
import DataVVue3 from '@kjgl77/datav-vue3'
import './assets/css/index.css' //全局导入CSS
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)

//icon
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
// 注册 Chart 组件
app.component('Chart', Chart);
app.use(DataVVue3)
app.use(router)
app.use(ElementPlus)

app.mount('#app')
